package java;

public class StringTest4 {
    String str=new String("good");
    char[] ch={'t','e','s','t'};

    public static void main(String[] args) {
        StringTest4 ex=new StringTest4();
        ex.change(ex.str,ex.ch);
        System.out.println(ex.str+"and");
        System.out.println(ex.ch);
    }

    public void change(String str,char ch[]){
        str="test ok";
        ch[0]='b';
    }
}
